import Vue from 'vue'
import VueRouter from 'vue-router'
import Lishi from '../views/Lishi.vue'
import Todays from '../views/Todays.vue'
import Home from '../views/Home.vue'
import Kucun from '../views/Kucun.vue'
import Xinxian from '../views/Xinxian.vue'
import Caipu from '../views/Caipu.vue'
import Tuijian from '../views/Tuijian.vue'
import Aituijian from '../views/AITuijian.vue'
import Leader from '../views/Leader.vue'
import Suggest from '../views/Suggest.vue'
import Menu from '../views/Menu.vue'
import Menu1 from '../views/Menu1.vue'
import Menu2 from '../views/Menu2.vue'
import Jkfenlei from '../views/Jkfenlei.vue'
import Fenxi from '../views/Fenxi.vue'
import Jiegou from '../views/Jiegou.vue'
import User from '../views/User.vue'
import UserInfo from '../components/UesrInfo.vue'
import Setting from '../components/Setting.vue'
import Likes from '../components/Likes.vue'
import Test from '../views/Test.vue'
import Test2 from '../views/Test2.vue'
import Test3 from '../views/Test3.vue'
import Sounds from '../views/Sounds.vue'
// import Ck from '../views/Ck.vue'

Vue.use(VueRouter)

const routes = [
  { path: '/', component: Home, name: 'home' },
  { path: '/lishi', component: Lishi, name: 'lishi' },
  { path: '/today', component: Todays, name: 'today' },
  { path: '/kucun', component: Kucun, name: 'kucun' },
  { path: '/xinxian', component: Xinxian, name: 'xinxian' },
  { path: '/caipu', component: Caipu, name: 'caipu' },
  { path: '/tuijian', component: Tuijian, name: 'tuijian' },
  { path: '/aituijian', component: Aituijian, name: 'aituijian' },
  { path: '/leader', component: Leader, name: 'leader' },
  { path: '/suggest', component: Suggest, name: 'suggest' },
  { path: '/menu', component: Menu, name: 'menu' },
  { path: '/menu1', component: Menu1, name: 'menu1' },
  { path: '/menu2', component: Menu2, name: 'menu2' },
  { path: '/jkfenlei', component: Jkfenlei, name: 'jkfenlei' },
  { path: '/fenxi', component: Fenxi, name: 'fenxi' },
  { path: '/jiegou', component: Jiegou, name: 'jiegou' },
  { path: '/test', component: Test, name: 'test' },
  { path: '/test2', component: Test2, name: 'test2' },
  { path: '/test3', component: Test3, name: 'test3' },
  { path: '/sounds', component: Sounds, name: 'sounds' },
  // { path: '/ck', component: Ck, name: 'ck' },
  {
    path: '/user',
    component: User,
    name: 'user',
    redirect: '/userinfo',
    children: [{ path: '/userinfo', component: UserInfo },
      { path: '/setting', component: Setting },
      { path: '/likes', component: Likes }]
  }

]

const router = new VueRouter({
  routes
})

export default router
